//
//  NQPickerView.h
//  ZLFastDoctor
//
//  Created by 李岚清 on 16/5/23.
//  Copyright © 2016年 LS. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, NQPickerBtnType) {
    NQPickerBtnTypeCancel,
    NQPickerBtnTypePost
};

@protocol NQPickerViewDelegate <NSObject>
/**
 *  通知代理点击了按钮
 *
 *  @param type         按钮类型
 *  @param heightResult 选中的高度值
 */
- (void)pickerViewDidClickBtn:(NQPickerBtnType)type result:(NSString *)Result pickerViewtypeName:(NSString *)typeName;

@end

@interface NQPickerView : UIView

@property (nonatomic, weak) id <NQPickerViewDelegate> delegate;

/**
 *  类方法创建自定义PickerView弹窗
 *
 *  @param type 信息类型
 *  @param unit 信息单位
 */
+ (instancetype)nq_pickerViewWithType:(NSString *)type unit:(NSString *)unit;

@end
